import httpInstance from '@/utils/http.js';

/**
 * 根据id获得分类
 * @param {*} id 
 * @returns 
 */
export  const getCategoryAPI=(id)=>{

    return httpInstance({
        url:'/category',
        method:'get',
        params:{
          id
        }
    })
}
/**
 * 二级分类
 * 
 */

export  const getCategoryFiteApI=(id)=>{
  return httpInstance({
    url:'/category/sub/filter',
    params:{
      id
    }
})}

export const getSubCategoryAPI=(data)=>{
  return httpInstance({
    url:'/category/goods/temporary',
    method:'POST',
    data
})}


 

